<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册页面</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/login.css">


    <!-- 验证js代码要放在body之后，如果放在此处，后续代码还未加载，所以就拿取不到 -->
    <!-- <script>
        // 拿一个id:
        // js原生写法
        // document.getElementById("username");
        // jQuery的写法
        alert(jQuery("#username").val());
    </script> -->
</head>

<body>
    <!-- 导航栏 -->
    <div class="nav">
        <img src="img/logo.jpg" alt="">
        <span class="title">博客系统</span>
        <!-- 用来占据中间位置 -->
        <span class="spacer"></span>
        <a href="blog_list.html">博客广场</a>
        <a href="login.html">登录</a>
        <!-- <a href="#">注销</a> -->
    </div>
    <!-- 版心 -->
    <div class="login-container">
        <!-- 中间的注册框 -->
        <div class="login-dialog">
            <h3>注册</h3>
            <div class="row">
                <span>用户名</span>
                <input type="text" id="username" placeholder="字母或数字且不少于4位" style="font-size: small;">
            </div>
            <div class="row">
                <span>密码</span>
                <input type="password" id="password1" placeholder="字母或数字且不少于6位" style="font-size: small;">
            </div>
            <div class="row">
                <span>确认密码</span>
                <input type="password" id="password2" style="font-size: small;">
            </div>
            <div class="row">
                <button id="submit" onclick="mysubmit()">提交</button>
            </div>
        </div>
    </div>

    <!-- 引入jQuery的js文件 -->
    <script src="./js/jquery.min.js"></script>
    <script src="./js/reg.js"></script>

</body>

</html>